package com.lanyam.travel.base.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author rosson
 * @since 2020-03-15
 */
@TableName("order_reject")
public class OrderReject extends Model<OrderReject> {

    private static final long serialVersionUID = 1L;

    @JsonProperty(value="id")
    private String id;
    /**
     * 订单id
     */
    @JsonProperty(value="orderId")
    @TableField("order_id")
    private String orderId;
    /**
     * 订单被驳回原因
     */
    @JsonProperty(value="reason")
    private String reason;
    /**
     * 订单审核驳回的时间
     */
    @JsonProperty(value="rejectTime")
    @TableField("reject_time")
    private Date rejectTime;

    /**
     * 驳回订单的用户id
     */
    @JsonProperty(value="rejectUserId")
    @TableField("reject_user_id")
    private String rejectUserId;
    
    
	public String getRejectUserId() {
		return rejectUserId;
	}

	public void setRejectUserId(String rejectUserId) {
		this.rejectUserId = rejectUserId;
	}

	public String getId() {
        return id;
    }

    public OrderReject setId(String id) {
        this.id = id;
        return this;
    }

    public String getOrderId() {
        return orderId;
    }

    public OrderReject setOrderId(String orderId) {
        this.orderId = orderId;
        return this;
    }


    public String getReason() {
		return reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Date getRejectTime() {
        return rejectTime;
    }

    public OrderReject setRejectTime(Date rejectTime) {
        this.rejectTime = rejectTime;
        return this;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
